package com.ticket.pojo;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Embeddable
public class CommonEntity extends BasePojo implements Serializable {
	private static final long serialVersionUID = 1L;

	@Column
	private Long visitUrl = Long.valueOf(System.currentTimeMillis());

	@Column
	private Integer orderValue = Integer.valueOf(0);

	@Column
	private Integer hits = Integer.valueOf(0);

	@Column
	private Integer commend = Integer.valueOf(0);

	@Column
	private Integer audit = Integer.valueOf(0);

	@Column
	private Integer hot = Integer.valueOf(0);

	@Temporal(TemporalType.TIMESTAMP)
	private Date createTime = new Date();

	@Column
	private Integer deleteFlag = Integer.valueOf(0);

	@Column(length = 20)
	private String versionFlag = "site";

	public Integer getOrderValue() {
		return this.orderValue;
	}

	public void setOrderValue(Integer orderValue) {
		this.orderValue = orderValue;
	}

	public Integer getHits() {
		return this.hits;
	}

	public void setHits(Integer hits) {
		this.hits = hits;
	}

	public Integer getCommend() {
		return this.commend;
	}

	public void setCommend(Integer commend) {
		this.commend = commend;
	}

	public Integer getAudit() {
		return this.audit;
	}

	public void setAudit(Integer audit) {
		this.audit = audit;
	}

	public Integer getHot() {
		return this.hot;
	}

	public void setHot(Integer hot) {
		this.hot = hot;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getDeleteFlag() {
		return this.deleteFlag;
	}

	public void setDeleteFlag(Integer deleteFlag) {
		this.deleteFlag = deleteFlag;
	}

	public String getVersionFlag() {
		return this.versionFlag;
	}

	public void setVersionFlag(String versionFlag) {
		this.versionFlag = versionFlag;
	}

	public Long getVisitUrl() {
		return this.visitUrl;
	}

	public void setVisitUrl(Long visitUrl) {
		this.visitUrl = visitUrl;
	}
}